package com.travel.service.impl;

import java.util.List;

import com.travel.dao.AdminDao;
import com.travel.dao.impl.AdminDaoImpl;
import com.travel.entity.Admin;
import com.travel.service.AdminService;

public class AdminServiceImpl implements AdminService{

	private AdminDao adminDao = new AdminDaoImpl();
	@Override
	public List<Admin> login(String adminName, String adminPassword) {
		return adminDao.findByNameAndPassword(adminName, adminPassword);
	}

}
